package com.efounder.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/9/21 14:41
 * @desc :
 * @version: 1.0
 */
public class MallSelectionPayOrderBean implements Serializable {


    /**
     * result : success
     * prePayInfo : {"orderTime":1546923021000,"remainPayTime":21599537,"ordersTotalPrice":45,"contractArray":[{"goodBh":"001296760000010","orderBh":"20190108125021560447","toAddress":"0xe1acf105f83482fa2f98d9d6bd2aa9164ba28547","goodNum":1}],"tokenUseArray":[{"tokenTypeId":"5","tokenRate":"1","tokenAmount":45,"rmbValue":45,"tokenTypeName":"观影券","tokenIcon":""}]}
     * orderIds : ["20190108125021560000"]
     */

    private String result;
    private PrePayInfoBean prePayInfo;
    private List<String> orderIds;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public PrePayInfoBean getPrePayInfo() {
        return prePayInfo;
    }

    public void setPrePayInfo(PrePayInfoBean prePayInfo) {
        this.prePayInfo = prePayInfo;
    }

    public List<String> getOrderIds() {
        return orderIds;
    }

    public void setOrderIds(List<String> orderIds) {
        this.orderIds = orderIds;
    }

    public static class PrePayInfoBean {
        /**
         * orderTime : 1546923021000
         * remainPayTime : 21599537
         * ordersTotalPrice : 45
         * contractArray : [{"goodBh":"001296760000010","orderBh":"20190108125021560447","toAddress":"0xe1acf105f83482fa2f98d9d6bd2aa9164ba28547","goodNum":1}]
         * tokenUseArray : [{"tokenTypeId":"5","tokenRate":"1","tokenAmount":45,"rmbValue":45,"tokenTypeName":"观影券","tokenIcon":""}]
         */

        private long orderTime;
        private int remainPayTime;
        private double ordersTotalPrice;
        private List<ContractArrayBean> contractArray;
        private List<TokenUseArrayBean> tokenUseArray;

        public long getOrderTime() {
            return orderTime;
        }

        public void setOrderTime(long orderTime) {
            this.orderTime = orderTime;
        }

        public int getRemainPayTime() {
            return remainPayTime;
        }

        public void setRemainPayTime(int remainPayTime) {
            this.remainPayTime = remainPayTime;
        }

        public double getOrdersTotalPrice() {
            return ordersTotalPrice;
        }

        public void setOrdersTotalPrice(double ordersTotalPrice) {
            this.ordersTotalPrice = ordersTotalPrice;
        }

        public List<ContractArrayBean> getContractArray() {
            return contractArray;
        }

        public void setContractArray(List<ContractArrayBean> contractArray) {
            this.contractArray = contractArray;
        }

        public List<TokenUseArrayBean> getTokenUseArray() {
            return tokenUseArray;
        }

        public void setTokenUseArray(List<TokenUseArrayBean> tokenUseArray) {
            this.tokenUseArray = tokenUseArray;
        }

        public static class ContractArrayBean {
            /**
             * goodBh : 001296760000010
             * orderBh : 20190108125021560447
             * toAddress : 0xe1acf105f83482fa2f98d9d6bd2aa9164ba28547
             * goodNum : 1
             */

            private String goodBh;
            private String orderBh;
            private String toAddress;
            private int goodNum;

            public String getGoodBh() {
                return goodBh;
            }

            public void setGoodBh(String goodBh) {
                this.goodBh = goodBh;
            }

            public String getOrderBh() {
                return orderBh;
            }

            public void setOrderBh(String orderBh) {
                this.orderBh = orderBh;
            }

            public String getToAddress() {
                return toAddress;
            }

            public void setToAddress(String toAddress) {
                this.toAddress = toAddress;
            }

            public int getGoodNum() {
                return goodNum;
            }

            public void setGoodNum(int goodNum) {
                this.goodNum = goodNum;
            }
        }

        public static class TokenUseArrayBean {
            /**
             * tokenTypeId : 5
             * tokenRate : 1
             * tokenAmount : 45
             * rmbValue : 45
             * tokenTypeName : 观影券
             * tokenIcon :
             */

            private String tokenTypeId;
            private String tokenRate;
            private double tokenAmount;
            private double rmbValue;
            private String tokenTypeName;
            private String tokenIcon;

            public String getTokenTypeId() {
                return tokenTypeId;
            }

            public void setTokenTypeId(String tokenTypeId) {
                this.tokenTypeId = tokenTypeId;
            }

            public String getTokenRate() {
                return tokenRate;
            }

            public void setTokenRate(String tokenRate) {
                this.tokenRate = tokenRate;
            }

            public double getTokenAmount() {
                return tokenAmount;
            }

            public void setTokenAmount(double tokenAmount) {
                this.tokenAmount = tokenAmount;
            }

            public double getRmbValue() {
                return rmbValue;
            }

            public void setRmbValue(double rmbValue) {
                this.rmbValue = rmbValue;
            }

            public String getTokenTypeName() {
                return tokenTypeName;
            }

            public void setTokenTypeName(String tokenTypeName) {
                this.tokenTypeName = tokenTypeName;
            }

            public String getTokenIcon() {
                return tokenIcon;
            }

            public void setTokenIcon(String tokenIcon) {
                this.tokenIcon = tokenIcon;
            }
        }
    }
}
